package com.reeygu.item.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.reeygu.item.pojo.Goods;
import com.reeygu.item.vo.GoodsVo;

import java.util.List;


/**
* @author a1304
* @description 针对表【t_goods】的数据库操作Service
* @createDate 2023-08-05 00:20:52
*/
public interface GoodsService extends IService<Goods> {
    //获取商品列表
    List<GoodsVo> findAllGoodsVo();
    //获取商品详情
    GoodsVo findGoodsVoByGoodsId(Long goodsId);

    int deductGoods(Long goodsId);
}
